import java.util.Scanner;

public class Demo01 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] arr = {1,12,3,4,6,458,45,54};
        for (int i = 0; i < arr.length; i++) {
            System.out.print(arr[i] + "\t");
        }
        System.out.println("\n++++++++++++++++++++++++++");
        for (int i = arr.length-1; i > 0; i--) {
            System.out.print(arr[i] + "\t");
        }
    }

}